from django.db import models

import datetime

class UploadFile(models.Model):

    title = models.CharField(max_length=255)
    # content = models.FileField(upload_to='/tmp/test_file_%s' % datetime.datetime.now().strftime('%Y%m%d%H%M%S'))
    # content = models.FileField(upload_to='/tmp')
    content = models.FileField(upload_to='%Y/%m/%d/')

    class Meta:
        db_table = 'upload_file_tab'
